﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Animation_Manager
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
       

        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new Form1());
            Form1 myForm = new Form1();

            myForm.Show();
            myForm.InitializeD3D();


            if (myForm.LoadFolder() == false)
            {
                myForm.Close();
            }

            while(myForm.IsRunning)
            {
                myForm.Updater();
                myForm.Render();
                Application.DoEvents();
            }
        }

        

        
    }
}
